<#ibizinclude>../@MACRO/FUNC/MACRO.ftl</#ibizinclude>
<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude>
<#if ctrl.getName() != 'toolbar'>
  <#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
  <#assign ModelsName = 'toolBarModels' />
</#if>
<#if item.render??>
${item.render.code}
<#else> 
<dropdown v-show="${ModelsName}.${item.name}.visabled" :transfer="true" trigger='hover'>
    <i-button class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>'<#if item.getTooltip()?? && item.getTooltip() != ''> title="<#if langbase??>$t('${langbase}.${item.name}.tip')<#else>'${item.getTooltip()}'</#if>"</#if>>
        <#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if>
        <#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if>
        <icon type="ios-arrow-down"></icon>
    </i-button>
    <#if item.getPSDEToolbarItems()??>
    <dropdown-menu slot='list'>
    <#list item.getPSDEToolbarItems() as toolbarItem>
        <dropdown-item>
            ${P.getPartCode(toolbarItem).code}
        </dropdown-item>
    </#list>
    </dropdown-menu>
    </#if>
</dropdown>
</#if>